package cn.yh.hibernate;

import java.util.HashSet;
import java.util.Set;

/**
 * City entity. @author MyEclipse Persistence Tools
 */

public class City implements java.io.Serializable {

	// Fields

	private Long cid;
	private Privinces privinces;
	private String cnameCn;
	private String cnameEn;
	private String cdetaile;
	private Set tones = new HashSet(0);

	// Constructors

	/** default constructor */
	public City() {
	}

	/** minimal constructor */
	public City(Long cid, String cnameCn) {
		this.cid = cid;
		this.cnameCn = cnameCn;
	}

	/** full constructor */
	public City(Long cid, Privinces privinces, String cnameCn, String cnameEn,
			String cdetaile, Set tones) {
		this.cid = cid;
		this.privinces = privinces;
		this.cnameCn = cnameCn;
		this.cnameEn = cnameEn;
		this.cdetaile = cdetaile;
		this.tones = tones;
	}

	// Property accessors

	public Long getCid() {
		return this.cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Privinces getPrivinces() {
		return this.privinces;
	}

	public void setPrivinces(Privinces privinces) {
		this.privinces = privinces;
	}

	public String getCnameCn() {
		return this.cnameCn;
	}

	public void setCnameCn(String cnameCn) {
		this.cnameCn = cnameCn;
	}

	public String getCnameEn() {
		return this.cnameEn;
	}

	public void setCnameEn(String cnameEn) {
		this.cnameEn = cnameEn;
	}

	public String getCdetaile() {
		return this.cdetaile;
	}

	public void setCdetaile(String cdetaile) {
		this.cdetaile = cdetaile;
	}

	public Set getTones() {
		return this.tones;
	}

	public void setTones(Set tones) {
		this.tones = tones;
	}

}